/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Shop;

import java.io.Serializable;

/**
 *
 * @author ThanhTam
 */
public class LineProduct implements Serializable{
    private int idLine;
    private String nameLine;
    private int idCompany;
    private int idType;
    
    public LineProduct(){}
    
    public LineProduct(int _idLine, String _nameLine,int _idCompany, int _idType){
        this.idLine    =    _idLine;
        this.nameLine  =    _nameLine;
        this.idCompany =    _idCompany;
        this.idType    =    _idType;
    }

    public int getIdCompany() {
        return idCompany;
    }

    public void setIdCompany(int idCompany) {
        this.idCompany = idCompany;
    }

    public int getIdType() {
        return idType;
    }

    public void setIdType(int idType) {
        this.idType = idType;
    }
    
    
    public int getIdLine() {
        return idLine;
    }

    public void setIdLine(int idLine) {
        this.idLine = idLine;
    }

    public String getNameLine() {
        return nameLine;
    }

    public void setNameLine(String nameLine) {
        this.nameLine = nameLine;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final LineProduct other = (LineProduct) obj;
        if (this.idLine != other.idLine) {
            return false;
        }
        if ((this.nameLine == null) ? (other.nameLine != null) : !this.nameLine.equals(other.nameLine)) {
            return false;
        }
        return true;
    }
    
}
